package win.wellcoding.wechat.action;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;

public class AbstractCommonAction<T> extends ActionSupport implements ServletRequestAware, ServletResponseAware, SessionAware  {
	// 错误码、错误消息
    protected Map<String, Object> session;
    protected HttpServletRequest  request;
    protected HttpServletResponse response;

	public void setServletRequest(HttpServletRequest request) {
        this.request = request;
    }

    public void setServletResponse(HttpServletResponse response) {
        this.response = response;
    }

    public void setSession(Map<String, Object> session) {
        this.session = session;
    }
}
